package org.ch00.test04.demo02;

/**
 * @author ZQX
 * @date 2025-03-03
 */
public class MainTest01 {
    public static void main(String[] args) {
        JiaoWuTeacher wang = new JiaoWuTeacher("王老师","NF") ;

        JavaTeacher zs = new JavaTeacher();
        DotNetTeacher ls = new DotNetTeacher();
        MusicTeacher ww = new MusicTeacher();

        // 根据不同的需求，切换不同的子类，实现不同的功能！
        wang.anPai(ww);

    }
}
